<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>影院售票票</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css">
    <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.min.js"></script>
</head>
<style type="text/css">
    body {
        background: #2E323B;
    }

    .piao {
        text-align: center;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        width: 238px;
        padding: 6px;
        line-height: 20px;
        background: #5f5f6d;
    }
</style>
<body>
<div th:replace="common/ticket-common::ticket-header"></div>
<!--轮播图-->
<div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
    <ol class="carousel-indicators">
        <li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li>
        <li data-target="#carouselExampleIndicators" data-slide-to="1"></li>
        <li data-target="#carouselExampleIndicators" data-slide-to="2"></li>
    </ol>
    <div class="carousel-inner ">
        <div class="carousel-item active ">
            <img src="images/lunbotu1.jpg" class="d-block w-100 h-60" >
        </div>
        <div class="carousel-item ">
            <img src="images/lunbotu2.jpg" class="d-block w-100 h-60" >
        </div>
        <div class="carousel-item ">
            <img src="images/lunbotu3.jpg" class="d-block w-100 h-60" >
        </div>
    </div>
    <button class="carousel-control-prev" type="button" data-target="#carouselExampleIndicators" data-slide="prev">
        <span class="carousel-control-prev-icon" aria-hidden="true"></span>
        <span class="sr-only">Previous</span>
    </button>
    <button class="carousel-control-next" type="button" data-target="#carouselExampleIndicators" data-slide="next">
        <span class="carousel-control-next-icon" aria-hidden="true"></span>
        <span class="sr-only">Next</span>
    </button>
</div>

<a style="font-size:30px;color:red"th:href="@{search}">正在热映</a>
<table bgcolor="0" align="center">
    <tr>
        <th:block th:each="film, iterStat : ${filmVoList}" th:if="${iterStat.index &lt; 4}">
            <td>
                <div style="width: 250px; margin:10px;">
                    <a th:href="'filmInfo?filmId=' + ${film.filmId}">
                        <img th:src="@{${#httpServletRequest.getContextPath() + film.imgPath}}"
                             style="width: 250px;height: 380px"/>
                    </a>
                    <div class="piao">
                        <p style="color: white; top: 50px;" th:text="${film.name}"></p>
                        <p style="color: white; top: 50px;">导演:<span th:text="${film.director}"></span></p>
                    </div>
                </div>
            </td>
        </th:block>
    </tr>
    <tr>
        <th:block th:each="film, iterStat : ${filmVoList}" th:if="${iterStat.index &gt;= 4 and iterStat.index &lt; 8}">
            <td>
                <div style="width: 250px; margin:10px;">
                    <a th:href="'filmInfo?filmId=' + ${film.filmId}">
                        <img th:src="@{${#httpServletRequest.getContextPath() + film.imgPath}}"
                             style="width: 250px;height: 380px"/>
                    </a>
                    <div class="piao">
                        <p style="color: white; top: 50px;" th:text="${film.name}"></p>
                        <p style="color: white; top: 50px;">导演:<span th:text="${film.director}"></span></p>
                    </div>
                </div>
            </td>
        </th:block>
    </tr>




</table>

<table bgcolor="0" align="center">
    <p style="font-size:30px;color:red">热门电影</p>
    <tr>
        <th:block th:each="film, iterStat : ${filmVoList}" th:if="${iterStat.index &gt;= 8 and iterStat.index &lt; 12}">
            <td>
                <div style="width: 250px; margin:10px;">
                    <a th:href="'filmInfo?filmId=' + ${film.filmId}">
                        <img th:src="@{${#httpServletRequest.getContextPath() + film.imgPath}}"
                             style="width: 250px;height: 380px"/>
                    </a>
                    <div class="piao">
                        <p style="color: white; top: 50px;" th:text="${film.name}"></p>
                        <p style="color: white; top: 50px;">导演:<span th:text="${film.director}"></span></p>
                    </div>
                </div>
            </td>
        </th:block>
    </tr>




    <tr>
        <th:block th:each="film, iterStat : ${filmVoList}" th:if="${iterStat.index &gt;= 12 and iterStat.index &lt; 16}">
            <td>
                <div style="width: 250px; margin:10px;">
                    <a th:href="'filmInfo?filmId=' + ${film.filmId}">
                        <img th:src="@{${#httpServletRequest.getContextPath() + film.imgPath}}"
                             style="width: 250px;height: 380px"/>
                    </a>
                    <div class="piao">
                        <p style="color: white; top: 50px;" th:text="${film.name}"></p>
                        <p style="color: white; top: 50px;">导演:<span th:text="${film.director}"></span></p>
                    </div>
                </div>
            </td>
        </th:block>
    </tr>

</table>

</body>
</html>
